package com.gt.quality.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.gt.quality.base.pojo.CommonTableInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
/**
 * 菜单权限表(SysMenu)表实体类
 *
 * @author makejava
 * @since 2026-11-25 16:30:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@Schema(title = "SysMenu", description = "EasyCode")
@TableName(value = "sys_menu", autoResultMap = true)
public class SysMenu extends CommonTableInfo implements Serializable {

    @Serial
	private static final long serialVersionUID = 1L;

    /**
     * Description:  菜单ID
     */
    @TableId(value = "menu_id", type = IdType.ASSIGN_ID)
    @Schema(title = "menu_id",description = "菜单ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long menuId;

    /**
     * Description:  菜单名称
     */
    @TableField(value = "menu_name")
    @Schema(title = "menu_name",description = "菜单名称")
    private String menuName;

    /**
     * Description:  父菜单ID
     */
    @TableField(value = "parent_id")
    @Schema(title = "parent_id",description = "父菜单ID")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long parentId;

    /**
     * Description:  显示顺序
     */
    @TableField(value = "order_num")
    @Schema(title = "order_num",description = "显示顺序")
    private Integer orderNum;

    /**
     * Description:  路由地址
     */
    @TableField(value = "path")
    @Schema(title = "path",description = "路由地址")
    private String path;

    /**
     * Description:  组件路径
     */
    @TableField(value = "component")
    @Schema(title = "component",description = "组件路径")
    private String component;

    /**
     * Description:  路由参数
     */
    @TableField(value = "query_param")
    @Schema(title = "query_param",description = "路由参数")
    private String queryParam;

    /**
     * Description:  是否为外链（0是 1否）
     */
    @TableField(value = "is_frame")
    @Schema(title = "is_frame",description = "是否为外链（0是 1否）")
    private Integer isFrame;

    /**
     * Description:  是否缓存（0缓存 1不缓存）
     */
    @TableField(value = "is_cache")
    @Schema(title = "is_cache",description = "是否缓存（0缓存 1不缓存）")
    private Integer isCache;

    /**
     * Description:  菜单类型（M目录 C菜单 F按钮）
     */
    @TableField(value = "menu_type")
    @Schema(title = "menu_type",description = "菜单类型（M目录 C菜单 F按钮）")
    private String menuType;

    /**
     * Description:  显示状态（0显示 1隐藏）
     */
    @TableField(value = "visible")
    @Schema(title = "visible",description = "显示状态（0显示 1隐藏）")
    private String visible;

    /**
     * Description:  菜单状态（0正常 1停用）
     */
    @TableField(value = "status")
    @Schema(title = "status",description = "菜单状态（0正常 1停用）")
    private String status;

    /**
     * Description:  权限标识
     */
    @TableField(value = "perms")
    @Schema(title = "perms",description = "权限标识")
    private String perms;

    /**
     * Description:  菜单图标
     */
    @TableField(value = "icon")
    @Schema(title = "icon",description = "菜单图标")
    private String icon;


    /**
     * Description:  备注
     */
    @TableField(value = "remark")
    @Schema(title = "remark",description = "备注")
    private String remark;

}


